<?php Yii::app()->clientScript->registerScript('locno',"
        var locid='$location->id';
        var custno='$location->custno';
        var locno='$location->locno';
        ",  CClientScript::POS_HEAD); ?>
<?php Yii::app()->clientScript->registerScript('type',"var type='$type';",  CClientScript::POS_HEAD);?>
<?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/app/salesPortal/invoices.js',CClientScript::POS_BEGIN);?>
<div id="left-col">
    <?php
      
            $this->widget('application.modules.salespersonportal.components.LocationMenu',array(
                            'location'=>$location,
                            'customer'=>$location->customer)
                    );              
    ?>
    
    
    

</div>

<div id="right-col">

    <div class="wrap">
        <div class="container">

            
            <div id="breadcrumb" style="display:none;"><span style="padding-left:10px;font-size:10px;color:#777777;" id="alsoviewing"></span></div>
            <div class="inside">
                <?php $this->renderPartial('/locations/_view',array(
                    'location'=>$location,
                ));?>
                <?php $this->renderPartial('/locations/_tab',array(
                    'model'=>$location,
                ));?>
                <br/>
                <div id="customer-tab">
                    <div id="invoice-list">
                        
                    </div>
                    
                </div>
            </div><!-- inside -->
        </div><!-- container -->
    </div><!-- wrap -->
    <?php $this->renderPartial('application.views.copyright'); ?>
</div> <!-- left-col -->